//---------------------------------------------------------------------------


#pragma hdrstop

#include "dataset.h"
#include "RmlObject.h"
#include "util.h"
#include <stdio.h>

//---------------------------------------------------------------------------

#pragma package(smart_init)
__fastcall DataSet::DataSet(char * s_parser)
{
 Visual=false;
 alias=new char[strlen(s_parser)+1];//NULL;
 query=new char[strlen(s_parser)+1];//NULL;
}
//---------
DataSet::Parsing(char * s_parser)
{
 char * p=NULL,t[256];
 int    d;
 char  *temp = new char[strlen(s_parser)+1];

 sprintf(t,"Alias_%x",this);

 strcpy(temp,s_parser);
 p = FindNameValueEqual(temp,"ALIAS");
 Alias = (p?p:t);
 strcpy(temp,s_parser);
 p = FindNameValue(temp,"QUERY","\"");
 Query = p;
 delete []temp;
}
